<div class="container" style="min-height: 206px;">   
    <div class="heading"><a id="sidebaropengear" onclick="showSideBarSettings();" href="javascript:void(0);"><img width=16" height="16" src="./images/gear.png" alt="" /></a>Information</div>
    <div id="selectedcustomernav" class="inside" style="padding-bottom:0px !important;">
        <input type="text" id="remote-users" style="width:143px !important;display:none"/>
        <div class="selectedcustomer" style="text-align:center;">
            <span id="selectedcustomer"><a href="index.php?r=Customers/update&id=<?=$customer->custno?>"><?php echo $customer->firstname.' '.$customer->lastname?></a></span>

        </div>


   </div>
    
    <div class="inside" style="padding-top:0px; padding-bottom:0px;">
        <h5 style="padding-left:11px;">Available Actions</h5>
        <ul class="links" style="margin-left:0px !important;">
            <li id='blankforvalidation2' style="display:none">&nbsp;</li>                        
            <li><a class="add-button" href='index.php?r=Locations/create&custno=<?=$customer->custno?>'>Add Location</a></li>
          
        </ul>
    </div>
    
    <?php if($contacts != NULL || count($contacts)>0):?>
    <div class="inside" style="padding-top:0px; padding-bottom:0px;">
        <h5 style="padding-left:11px;">Contacts</h5>
        <ul class="links" style="margin-left:0px !important;">
            <li id='blankforvalidation2' style="display:none">&nbsp;</li>
            
            <?php foreach($contacts as $item):?>
                
                <li><a href='index.php?r=Locationcontacts/update&custno=<?=$item->custno?>&locno=<?=$item->locno?>'><?=$item->contact?></a></li>
            <?php endforeach?>
            
            
        </ul>
    </div>
   <?php endif?>
    

</div>